
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package twoTeam;

import java.awt.Point;
import java.util.ArrayList;

/**
 *
 * @author uhgy3k
 */
class Nodo {
    Point place;
    int dist;
    ArrayList<Integer> camino;
    int h,g;

    Nodo(int x, int y, int dH, int dG, ArrayList l, int dir) {
        place = new Point();
        place.x = x;
        place.y = y;
        dist = dH + dG;
        h = dH;
        g = dG;
        camino = (ArrayList<Integer>) l.clone();
        camino.add(dir);
    }

    Nodo(int x, int y, int heuristica) {
        place = new Point();
        place.x = x;
        place.y = y;
        dist = heuristica;
        h = heuristica;
        g = 0;
        camino = new ArrayList();
    }
}